import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';
import 'package:light_image/pages/first_page.dart';
import 'package:light_image/pages/login_page.dart';

import 'commom/commom.dart';

class MyApp extends StatelessWidget {
    MyApp(StatefulWidget v){
    this.home=v;
    print('程序首页面'+home.toString());
  }
  StatefulWidget home;

  // This widget is the root of your application.
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      title: '素玄云底片',
      theme: ThemeData(
        primarySwatch: Colors.blue,
      ),
  home: home,
//      home:  FirstPage( ),
//      home:  LoginPage( ),
      navigatorKey: navGK,
    );
  }
}
